import 'package:qq_music/tools/extends/Json/SelectSond/QQ_music/select_sond.dart' as select_sond;

class ToneQuality {
  String ascendingOrder(select_sond.File songInfo) {
    String fileExtends = 'm4a';

    if (songInfo.size128 != 0) {
      fileExtends = 'm4a';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为128');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.size128mp3 != 0) {
      fileExtends = 'mp3';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为128mp3');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.size320 != 0) {
      fileExtends = 'm4a';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为320');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.size320mp3 != 0) {
      fileExtends = 'mp3';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为320mp3');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.sizeAac != 0) {
      fileExtends = 'aac';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为Aac');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.sizeApe != 0) {
      fileExtends = 'ape';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为Ape');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.sizeFlac != 0) {
      fileExtends = 'flac';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为Flac');
      print('----------------------------文件类型--------------------------------');
    }
    return fileExtends;
  }

  String descendingOrder(select_sond.File songInfo) {
    String fileExtends = 'm4a';

    if (songInfo.sizeFlac != 0) {
      fileExtends = 'flac';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为Flac');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.sizeApe != 0) {
      fileExtends = 'ape';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为Ape');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.sizeAac != 0) {
      fileExtends = 'aac';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为Aac');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.size320mp3 != 0) {
      fileExtends = 'mp3';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为320mp3');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.size320 != 0) {
      fileExtends = 'm4a';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为320');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.size128mp3 != 0) {
      fileExtends = 'mp3';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为128mp3');
      print('----------------------------文件类型--------------------------------');
    } else if (songInfo.size128 != 0) {
      fileExtends = 'm4a';
      print('----------------------------文件类型--------------------------------');
      print('当前文件类型为128');
      print('----------------------------文件类型--------------------------------');
    }
    return fileExtends;
  }
}
